home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / linalg.zip / PROJ15.PRO < prev    next >
Text File  |  1989-05-26  |  894b  |  22 lines

  1. PROJECT 15
  2.  
  3. Form a 3-dimensional vector with reasonably random components 
  4. (for example use your street address, birthdate, etc.).  Call
  5. this vector u.
  6.  
  7. We are going to test the randomness of the random vector
  8. generator which LINALG uses.  The vector u which you created
  9. determines a unique plane P through the origin, perpendicular
  10. to u.  A random vector should be on one side of the plane P
  11. or the other.  Each side should be equally likely.  The test
  12. to determine which side a vector lies on is to take its inner
  13. product with u, and to see if it is positive or negative.
  14.  
  15. Create 10 random  3-dimensional vectors, using the random vector 
  16. generator of LINALG.  Name these vectors v1,...,v10. Now compute
  17. the inner product of u with each of them.  Print the results,
  18. and at the top of the page write your name and the numbers 
  19. of positive and negative inner products.
  20.  
  21.  
  22.